import { IFeidaoAiBrowserComponent } from '@dfeidao/atom-web/interfaces';
import get from '@dfeidao/atom-web/local/get';
import fire from '@dfeidao/atom-web/msg/fire';
import nodejs from '@dfeidao/atom-web/msg/nodejs';
export default async function a002(fd: IFeidaoAiBrowserComponent) {
	// todo
	const risk_no = get(fd, "risk_no");
	const res = await nodejs<{ code: 0 | 1; result: string }>('risk-control/zj-000006/s001', { risk_no });
	if (res.code === 1) {
		alert("删除成功!");
		fire('zj-000001', 'a005');
		fire('zj-000006', 'a003');
	} else {
		alert("删除失败!");
	}
}
